<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>组件内的状态管理流程</title>
</head>

<body>
  <div>
    new Vue({
    //state
    data () {
    return {
    count : 0
    }
    },

    // view
    template: `<div>{{count}}</div>`,

    // actions
    methods: {
    increment () {
    this.conut++
    }
    }
    })
    <h1>
      <h1>状态管理</h1>
      <p>1.state,驱动应用的数据源</p>
      <p>2.view,以声明方式将state映射到视图</p>
      <p>3.actions,响应在view上的用户输入导致的状态变化</p>
    </h1>
  </div>
  <script>
  </script>
</body>

</html>